package icu.guodapeng.gateway.api

enum class ResultCode(
    private var code: Long,
    private var message: String
) : IErrorCode {
    SUCCESS(200, "操作成功(gateway)"),
    FAILED(500, "操作失败(gateway)"),
    VALIDATE_FAILED(404, "参数检验失败(gateway)"),
    UNAUTHORIZED(401, "暂未登录或token已经过期(gateway)"),
    FORBIDDEN(403, "没有相关权限(gateway)");

    override fun getCode(): Long = code
    override fun getMessage(): String = message
}
